import request from '@/utils/request'



//insertEvaluate
export function insertEvaluate(data) {
  return request({
    url: '/mine/mine/insertEvaluate',
    method: 'post',
    data
  })
}

//updatePwdByEmail
export function updatePwdByEmail(data) {
  return request({
    url: '/system/user/updatePwdByEmail',
    method: 'post',
    data
  })
}

//http://localhost:9201/config/sendResetPwdMail
export function sendResetPwdMail(email) {
  return request({
    url: '/system/config/sendResetPwdMail?email=' + email,
    method: 'post'
  })
}

/**
 * dsr接口
 * @returns {*}
 */

//根据药品类型查询药品 queryDrugByPharmacyId

export function queryDrugByPharmacyId(pharmacyId) {
  return request({
    url: '/mine/mine/queryDrugByPharmacyId/' + pharmacyId,
    method: 'post'
  })
}

//查询药品类型
export function queryPharmacyName(data) {
  return request({
    url: '/mine/mine/queryPharmacyName',
    method: 'get',
    data
  })
}

// 动态目录 http://localhost:8080/mine/mine/queryCatalogueName
export function queryCatalogueName(data) {
  return request({
    url: '/mine/mine/queryCatalogueName',
    method: 'get',
    data
  })
}

export function queryDiseaseNameByCatalogueId(catalogueId) {
  return request({
    url: '/mine/mine/queryDiseaseNameByCatalogueId/' + catalogueId,
    method: 'post'
  })
}

// 根据目录id查询药品名称  queryDrugNameByCatalogueId
export function queryDrugNameByCatalogueId(catalogueId) {
  return request({
    url: '/mine/mine/queryDrugNameByCatalogueId/' + catalogueId,
    method: 'post'
  })
}
